//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopStoreApply, MinishopStoreApplyResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopStoreApplyList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopStoreApplyResponse>(`/uctoo/minishop_store_apply/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopStoreApply = async (id: string) => {
  return requestClient.get<MinishopStoreApply>(`/uctoo/minishop_store_apply/${id}`);
};

export const adductooMinishopStoreApply = async (data: Partial<MinishopStoreApply>) => {
  return requestClient.post<MinishopStoreApply>('/uctoo/minishop_store_apply/add', data);
};

export const edituctooMinishopStoreApply = async (data: Partial<MinishopStoreApply>) => {
  return requestClient.post<MinishopStoreApply>('/uctoo/minishop_store_apply/edit', data);
};

export const deleteuctooMinishopStoreApply = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_store_apply/del', { id });
};
